package com.bruce.demo2.patterns.demo1.creational.demo04.Prototype.demo1;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 奖状类：实现浅拷贝
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/11 22:12
 */
public class Citation implements Cloneable {
    //奖状人员姓名
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void show() {
        System.out.println(name + " 同学：在2021学年第一学期中表现优秀，被评为三号学生，特发此状！！！");
    }

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
